#FC=ifort -O3 -tpp7 -mp1 -prec_div -pc80   -unroll  -w  -qp  -p -g -traceback
FC=ifort -xW -O3   
#FC=ifort -CB -traceback -g 
AR=ar

.SUFFIXES: .f90 .o
.f90.o:
	$(FC) -c $<

libellikit: ElliDef.o basic_matrix.o metric.o matrix_operators.o elliptic_solvers.o
	(ar r libellikit.a *.o; \
         ar d libellikit.a metric.o;\
         mv *.mod ../include;\
          mv libellikit.a ../lib;\
	  rm *.o)

clean:
	(cd ../include;rm -f *.mod;cd ../lib; rm -f libellikit.a;cd ../src;rm -f *.mod *.o *~)



 